/**
 * Swing_UI.java
 * 
 * Created On: Nov 21, 2008
 * Created By: ## CHANGE IN JAVA->CODE STYLE->CODE TEMPLATES->New Java Files
 *
 * Copyright (C) 2008 University of Wisconsin Platteville - ResNet
 *
 * All rights are reserved to the University of Wisconsin Platteville
 */

package view;

import java.awt.Dimension;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Menu;
import java.awt.MenuBar;

import javax.swing.JFrame;
import javax.swing.UIManager;

public class Swing_UI extends JFrame
{
	private GridBagLayout layout;
	private GridBagConstraints contraints;
	
	public Swing_UI()
	{
		layout = new GridBagLayout();
		this.setLayout(layout);
		
		MenuBar menuBar = new MenuBar();
		Menu menu = new Menu("My Menu");
		menuBar.add(menu);
		this.setMenuBar(menuBar);
		
		this.setSize( new Dimension( 200, 200) );
	}
	
	public static void main(String[] args) throws Exception
	{
		System.setProperty("apple.laf.useScreenMenuBar", "true");
		System.setProperty("com.apple.mrj.application.apple.menu.about.name", "Quick Translate");
		UIManager.setLookAndFeel( UIManager.getSystemLookAndFeelClassName() );
		Swing_UI ui = new Swing_UI();
		System.out.println( UIManager.getSystemLookAndFeelClassName() );
		
		ui.setTitle("Quick Translate");
		ui.setVisible(true);
	}
}
